<?php 
//get library
eval ("?>$library");
?>    

<?php 
 //Set seo content
$seoData->setTitle("Rewrite Article - " . $_SERVER['SERVER_NAME']);
$seoData->setDescription("Article rewriter tool specialists rewrite the article (copy - duplicate content) into a unique article content (for google). It will change some words, phrases ... so that the content is constant but its a unique content article after rewritable. We built this tool for that purpose. We hope give a useful tool to communities SEOer and online marketers. Unique content is the King.");
$seoData->setKeywords("rewrite, rewrite article, archives, archives article, submit article, article commit");
$seoData->setOgSiteName($_SERVER['SERVER_NAME']);
$seoData->setOgTitle("Rewrite Article - " . $_SERVER['SERVER_NAME']);
$seoData->setOgDescription("Article rewriter tool specialists rewrite the article (copy - duplicate content) into a unique article content (for google). It will change some words, phrases ... so that the content is constant but its a unique content article after rewritable. We built this tool for that purpose. We hope give a useful tool to communities SEOer and online marketers. Unique content is the King.");
?>
 	            
            <div class="container">            	                
                <div class="row-fluid">

                    <!-- main content
                    ================================================== -->
                    <div id="mainContent" class="span8">
                        <div id="mainContent_inner">
                        
                        	<!-- article rewrite
                    		================================================== -->
                        	<h1>Article rewriter</h1>
                            <hr />
                            <p class="text-info">Article rewriter tool specialists rewrite the article (copy - duplicate content) into a unique article content (for google). It will change some words, phrases ... so that the content is constant but it's a unique content article after rewritable. We built this tool for that purpose. We hope give a useful tool to communities SEOer and online marketers. Unique content is the King.</p>
                            <form method="post" action="">
                            	<label class="text-error">Original Article (required)</label>
                                <textarea class="input-block-level" rows="10" required  name="article"><?=$articleContent?></textarea>
                                <p><button type="submit" class="btn btn-large btn-info">Rewrite</button></p>
                                <label>Rewritten Article</label>
                                <textarea class="input-block-level" rows="10" readonly="readonly"><?=$rewriteContent?></textarea>
                            </form>
                        </div>
                    </div>

                    <!-- sidebar
                    ================================================== -->
                    <div class="span4">
                        <aside>
                        
                        	<!-- Search
        					================================================== -->
                        	<div class="module-2">
                                <h3 class="title">Search this site</h3>
                                <div class="moduleContent">
                                    <form method="get" action="/search" class="form-inline">
                                    	<input type="text" placeholder="Search article" class="" name="q"  />
                                        <button type="submit" class="btn">Search</button>
                                    </form>
                                </div>
                            </div>
                            
                            <!-- Adv
        					================================================== -->
                            <div class="module-2">                                
                                <div class="moduleContent adv-sidebar">
                                    <!-- Adv adsense BEGIN -->
                                    <script type="text/javascript"><!--
									google_ad_client = "ca-pub-2883566427648799";
									/* 300x250 */
									google_ad_slot = "2688877886";
									google_ad_width = 300;
									google_ad_height = 250;
									//-->
									</script>
									<script type="text/javascript"
									src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
									</script>
                                    <!-- Adv adsense END -->
                                </div>
                            </div>
                            
                            <!-- Recent article
        					================================================== -->
                            <div class="module-6">
                                <h3 class="title">Recent article view</h3>
                                <div class="moduleContent">
                                    <ul class="listingStyle" itemscope itemtype="http://schema.org/ItemList">
                                    	<?php 
                                    	foreach ($lastestArticles as $key => $article) {
                                    	?>
                                    	<li itemscope itemtype="http://schema.org/Article" itemprop="itemListElement">
                                        	<h5 itemprop="name" class="articleTitle"><a href="/article/<?=$article->getAlias()?>" itemprop="url"><?=$article->getTitle()?></a></h5>
                                            <span itemprop="dateCreated"><?=date("M, d Y", $article->getCreated())?></span>
                                        </li>
                                        <?php 
                                    	}
                                        ?>
                                    </ul>
                                </div>
                            </div>
                            
                            <!-- Categories
        					================================================== -->
                            <div class="module-6">
                                <h3 class="title">Categories</h3>
                                <div class="moduleContent">
                                    <ul class="listingStyle" itemscope itemtype="http://schema.org/ItemList">
                                    	<?php
                                    	foreach ($lstCategories as $key => $category) { 
                                    	?>
                                    	<li itemprop="itemListElement"><i class="icon-share-alt"></i> <a itemprop="url" href="/category/<?=$category->getAlias()?>"><span itemprop="name"><?=$category->getName()?></span></a></li>
                                    	<?php } ?>
                                    </ul>
                                </div>
                            </div>
                            
                            <!-- Tags
        					================================================== -->
                            <div class="module-2">
                            	<h3 class="title">Tags</h3>                            
                                <div class="moduleContent" itemscope itemtype="http://schema.org/CreativeWork">
                                	<?php 
                                	foreach ($tags as $key => $tag) {
                                	?>
                                    <a href="/tag/<?=urlencode($tag)?>" class="label label-info" itemprop="keywords"><?=$tag?></a>
                                    <?php 
                                	}
                                    ?>
                                </div>
                            </div>
                        </aside>
                    </div>
                </div>
            </div>
